﻿@using SportsStore.Web.HtmHelpers
@using SportsStore.Web.Models.Product
@model ProductsViewModel

@{
  ViewBag.Title = "Products";
  Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Products</h2>

@foreach (ProductViewModel productViewModel in Model.Products)
{
  Html.RenderPartial("_ProductSummary", productViewModel);
}

<div class="pager">
  @Html.PageLinks(Model.PagingInfo, x => Url.Action("Index", new {page = x, category = Model.CurrentCategory}))
</div>
